﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SuraQR.Controller
{
    class ServerRuntimeSingleton
    {
        private static readonly ServerRuntimeSingleton instance = new ServerRuntimeSingleton();

        private Form _main;
        private QRCodeEngineService _QRcodeService;
        private XmlToMenuService menuList;
        private OracleDriver11g orcleDB;

        public OracleDriver11g OrcleDB
        {
            get { return orcleDB; }
            set { orcleDB = value; }
        }

        public XmlToMenuService MenuList
        {
            get { return menuList; }
            set { menuList = value; }
        }

        public QRCodeEngineService QRcodeService
        {
            get { return _QRcodeService; }
            set { _QRcodeService = value; }
        }

        public Form Main
        {
            get { return _main; }
            set { _main = value; }
        }
        
        public static ServerRuntimeSingleton Instance
        {
            get { return ServerRuntimeSingleton.instance; }
        } 

    }
}
